#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    // 设置tooltips
    ui->pushButton_yes->setToolTip("确认按钮");
    ui->pushButton_yes->setToolTipDuration(3000); // 以毫秒为单位
    ui->pushButton_no->setToolTip("取消按钮");
    ui->pushButton_no->setToolTipDuration(3000);

    ui->lineEdit->setFocusPolicy(Qt::TabFocus);
    ui->lineEdit_2->setFocusPolicy(Qt::TabFocus);
    ui->lineEdit_3->setFocusPolicy(Qt::TabFocus);
    ui->lineEdit_4->setFocusPolicy(Qt::TabFocus);
}

Widget::~Widget()
{
    delete ui;
}

